from django.shortcuts import render
from feedback.models import Feedback
from django.core.paginator import Paginator


def index(request):
	return render(request, 'admin/index.html')


def feedback(request):
    page = request.GET.get('page', 1)
    feedbacks = Paginator(Feedback.objects.all(), 20).page(page)

    return render(request, 'admin/feedback.html', {'feedbacks': feedbacks})
